FROM centos:centos7

ADD mongo.repo /etc/yum.repos.d/mongodb-org-5.0.repo
ADD mongod-2.conf /etc/mongodb.conf

RUN yum install -y mongodb-org
EXPOSE 27017
CMD ["mongod","-f","/etc/mongodb.conf"]